package pers.kw.server.persist.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import pers.kw.server.persist.entity.AccountInfoDO;

public interface AccountInfoDao extends JpaRepository<AccountInfoDO, Long> {

    @Query(value = "from AccountInfoDO where yn=1 and userNo=:userNo")
    AccountInfoDO findByUserNo(@Param("userNo") String userNo);
}
